<?$this->load->view('temp/header');?>

<div id="body-wrap">
	<div id="body-top">
		<div class="top-banner">
			<?=anchor('admin', '<img src="html/css/images/header_logo.png" />')?>
		</div>
		<div class="top-sub">
			<?$this->load->view('admin/includes/admin_nav')?>
		</div>
	</div>
	<div id="body-content">
		<div class="container">

			<?$this->load->view($page);?>

		</div>
	</div>
</div>
<div id="user_info_modal"></div>
<?$this->load->view('temp/footer');?>

<script>
$(function(){
	$('#user_info_button').click(function(e){
		e.preventDefault();
		$('#user_info_modal').load($(this).attr('href'), function() {
			$(this).dialog('open');
		});
	});

	$("#user_info_modal").dialog({
		autoOpen: false,
		modal: true,
		title: 'Edit Info',
		minWidth: 350,
		resizable:false,
		buttons: {
			Update: function() {
				$("#user_info_modal form").submit();
			},
			Cancel: function(){
				$(this).dialog("close");
			}
		}
	});
});
</script>